import Http from '../../http';
import {download} from '../../../library/commonUtil';

//分页查询接口
export const pageApi = function(param: any) {
return Http.get('/sys-dept/page', param)
}

//添加修改接口
export const saveApi = function(param: any) {
return Http.post('/sys-dept/save', param)
}

//删除接口
export const removeApi = function(id: number) {
return Http.post('/sys-dept/remove/'+id)
}

//详情接口
export const infoApi = function(id: number) {
return Http.get('/sys-dept/info/'+id)
}

//导出接口
export const exportApi = function(param: any) {
    download('部门信息.xlsx','/sys-dept/export', param);    
}

//查询树集合接口
export const treeListApi = function(param: any) {
    return Http.get('/sys-dept/tree-list',param)
}

//查询树接口
export const treeApi = function(param: any) {
    return Http.get('/sys-dept/tree',param)
}
